<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../common.jsp" %>

<div id="content_right">


<br>
<form id="form" action="../emp/findEmpAllAction.action" method="post" >
	<table cellspacing="1" class="table">
		<tr>
			<td class="tb_top">人员ID：</td>
			<td class="tb_mid" colspan="2">&nbsp;&nbsp;
				<input  id="empId" name="empId"  onkeyup="value=value.replace(/[^\d]/g,'') "   
                 onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" />
			</td>
		</tr>
	    <tr>
			<td class="tb_top">姓名：</td>
			<td class="tb_mid" colspan="2">&nbsp;&nbsp;
				<input type="text" id="empName" name="empName" value=""/>
			</td>
		</tr>
			<tr>
			<td class="tb_top">所属部门：</td>
			<td class="tb_mid" colspan="2">&nbsp;&nbsp;
				<select id="empDeptId" name="empDeptId" >
				<option value="">
 				</option>
				<c:forEach items="${list}" var="Department">
				<option id="${Department.deptId}" value="${Department.deptId}"  >
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;${Department.deptId}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					</option>
				</c:forEach>
				</select>
			</td>
		</tr>
        <tr>
			<td class="tb_top">人员类型：</td>
			<td class="tb_mid" colspan="2">&nbsp;&nbsp;
				<select id="empSytle" name="empSytle" style="width:155px">
					<option value="0" ></option>
					<option value="3" >系统管理员</option>
					<option value="2" >普通管理员</option>
					<option value="1" >普通员工</option>
				</select>
			</td>
		</tr>
		
		
	</table>
	<p align="right">
	<input type="submit" class="button" value="查询"/>
	</p>
</form>
<hr class="color: rgb(70, 122, 167);">

<br />
	<table cellspacing="1" class="table">
		<tr class="table_header">
			<td valign="middle" align="left">
				人员ID
			</td>
			<td valign="middle" align="left">
				姓名
			</td>
			<td valign="middle" align="left">
				所属部门
			</td>
			<td valign="middle" align="left">
				人员类型
			</td>
		</tr>
		<c:forEach items="${listEmp}" var="Employee">
			<tr class="row2"  onmouseover="this.className='row1'" onmouseout="this.className='row2'">
				<td valign="middle" align="left">
					${Employee.empId}
				</td>
				<td valign="middle" align="left">
					${Employee.empName}
				</td>
				<td valign="middle" align="left">
					${Employee.department.deptId}
				</td>
				
				<td valign="middle" align="left">
					<c:choose>
						<c:when test="${Employee.empStyle==0}"></c:when>
						<c:when test="${Employee.empStyle==1}">普通员工</c:when>
						<c:when test="${Employee.empStyle==2}">普通管理员</c:when>
						<c:when test="${Employee.empStyle==3}">系统管理员</c:when>
					</c:choose>
				</td>
			</tr>
		</c:forEach>
	</table>
<br />
</div>
<br />
